var form;

$(document).ready(function () {
    layui.use('form', function () {
        form = layui.form;
        form.render();
    });
});